package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公共文档信息对象 bus_file
 * 
 * @author ruoyi
 * @date 2021-01-11
 */
public class BusFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文档id */
    private Long fileId;

    /** 文档类型 */
    @Excel(name = "文档类型")
    private String fileType;

    /** 文档名称 */
    @Excel(name = "文档名称")
    private String fileName;

    /** 文档地址 */
    @Excel(name = "文档地址")
    private String address;

    /** 附件大小 */
    @Excel(name = "附件大小")
    private BigDecimal size;

    /** 上传企业 */
    @Excel(name = "上传企业")
    private Long uploadDeptId;

    /** 上传人id */
    @Excel(name = "上传人id")
    private Long uploadUserId;

    /** 上传人名称 */
    @Excel(name = "上传人名称")
    private String uploadUserName;

    /** 下载次数 */
    @Excel(name = "下载次数")
    private Integer downloadNum;

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setSize(BigDecimal size) 
    {
        this.size = size;
    }

    public BigDecimal getSize() 
    {
        return size;
    }
    public void setUploadDeptId(Long uploadDeptId) 
    {
        this.uploadDeptId = uploadDeptId;
    }

    public Long getUploadDeptId() 
    {
        return uploadDeptId;
    }
    public void setUploadUserId(Long uploadUserId) 
    {
        this.uploadUserId = uploadUserId;
    }

    public Long getUploadUserId() 
    {
        return uploadUserId;
    }
    public void setUploadUserName(String uploadUserName) 
    {
        this.uploadUserName = uploadUserName;
    }

    public String getUploadUserName() 
    {
        return uploadUserName;
    }
    public void setDownloadNum(Integer downloadNum) 
    {
        this.downloadNum = downloadNum;
    }

    public Integer getDownloadNum() 
    {
        return downloadNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("fileType", getFileType())
            .append("fileName", getFileName())
            .append("address", getAddress())
            .append("size", getSize())
            .append("uploadDeptId", getUploadDeptId())
            .append("uploadUserId", getUploadUserId())
            .append("uploadUserName", getUploadUserName())
            .append("createTime", getCreateTime())
            .append("downloadNum", getDownloadNum())
            .toString();
    }
}
